<?php
//coba ilham
function triangle($jum){
    $bintang=0;
    for($i=$jum;$i>=1;$i--){
        for($j=$i;$j>=1;$j--){
            echo "*";
            $bintang++;
        }
		echo "<br>";
    }
    echo "=> ".$bintang;
	echo "halo selamat pagi";
}

$param=50;
triangle($param);

?>